#ifndef L1IOAPI_H
#define L1IOAPI_H

#include <string>
#include <sstream>
#include <cstring>
namespace l1api{
  class pipe{
  public:
  pipe(std::string n): m_name(n), 
      m_is_open(false){
    }
    int open();
    int close();
    int write(const char * &buf, ssize_t len);
    int read(char * buf, ssize_t len);
  private:
    std::string m_name;
    bool m_is_open;
    std::ostringstream m_ostringstream;
  };

};

#endif
